.class public Lcom/nemustech/regina/ElementWorkspaceSwitcher;
.super Lcom/nemustech/regina/Element;
.source "ElementWorkspaceSwitcher.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;
    }
.end annotation


# static fields
.field private static final ANIMATION_TIME_POTENTIAL_WORKSPACE_APPEAR:I = 0xc8

.field private static final ANIMATION_TIME_REAL_WORKSPACE_GREETING:I = 0x64

.field private static final ANIMATION_TIME_REARRANGE:I = 0xc8

.field private static final ANIMATION_TIME_SWITCHER_TO_WORKSPACE:I = 0xdc

.field private static final ANIMATION_TIME_WORKSPACE_DELETE:I = 0xc8

.field private static final ANIMATION_TIME_WORKSPACE_TO_SWITCHER:I = 0xb4

.field private static final DEBUG_ELEMENT_WORKSPACE_SWITCHER:Z = false

.field private static final HOVER_HEIGHT:F = 2.0f

.field private static final HOVER_OPACITY:F = 0.7f

.field private static final POSITION_POTENTIAL_WORKSPACE_EDIT:F = 0.0f

.field private static final POSITION_POTENTIAL_WORKSPACE_SWITCHER:F = -6.0f

.field private static final POSITION_WORKSPACE_SWITCHER_SWITCHER:F = -6.5f

.field private static final POSITION_WORKSPACE_SWITCHER_WORKSPACE:F = 0.0f

.field private static final PSEUDO_ZERO:F = -0.1f

.field private static final TAG:Ljava/lang/String; = "ElementWorkspaceSwitcher"

.field private static final WS_SWITCHER_EFF_FINISH_STATE_NONE:I = -0x1

.field private static final WS_SWITCHER_EFF_FINISH_STATE_SWITCHER:I = 0x1

.field private static final WS_SWITCHER_EFF_FINISH_STATE_WORKSPACE:I


# instance fields
.field private mAddWorkspaceListener:Lcom/nemustech/tiffany/world/TFModel$OnTouchListener;

.field mAnimateToWorkspaceFinishListener:Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;

.field private mCorrectionRatio:F

.field private mDelayHidingHandler:Ljava/lang/Runnable;

.field mDeleteIconTouchListener:Lcom/nemustech/tiffany/world/TFModel$OnTouchListener;

.field mDeleteWorkspaceThumbEffectListener:Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;

.field private mElementLocator:Lcom/nemustech/regina/ElementLocator;

.field private mGapX:F

.field private mGapY:F

.field private mHandler:Landroid/os/Handler;

.field private mIdle:Z

.field private mNearestIndex:I

.field private mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

.field private mResources:Landroid/content/res/Resources;

.field private mWithAddPanel:Z

.field private mWorkspaceHeight:F

.field private mWorkspaceHolder:Lcom/nemustech/regina/RGWorkspaceHolder;

.field private mWorkspaceSwitcher:Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

.field mWorkspaceSwitcherTouchListener:Lcom/nemustech/tiffany/world/TFModel$OnTouchListener;

.field private mWorkspaceThumbMaps:[[[F

.field private mWorkspaceWidth:F


# direct methods
.method public constructor <init>(Lcom/nemustech/regina/ReginaLauncher;Lcom/nemustech/regina/RGWorkspaceHolder;Lcom/nemustech/regina/ElementLocator;)V
    .locals 9
    .parameter "reginaLauncher"
    .parameter "workspaceHolder"
    .parameter "elementLocator"

    .prologue
    .line 478
    invoke-direct {p0}, Lcom/nemustech/regina/Element;-><init>()V

    .line 50
    const/high16 v4, -0x4080

    iput v4, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mCorrectionRatio:F

    .line 86
    const/16 v4, 0x9

    new-array v4, v4, [[[F

    const/4 v5, 0x0

    const/4 v6, 0x1

    new-array v6, v6, [[F

    const/4 v7, 0x0

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_0

    aput-object v8, v6, v7

    aput-object v6, v4, v5

    const/4 v5, 0x1

    const/4 v6, 0x2

    new-array v6, v6, [[F

    const/4 v7, 0x0

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_1

    aput-object v8, v6, v7

    const/4 v7, 0x1

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_2

    aput-object v8, v6, v7

    aput-object v6, v4, v5

    const/4 v5, 0x2

    const/4 v6, 0x3

    new-array v6, v6, [[F

    const/4 v7, 0x0

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_3

    aput-object v8, v6, v7

    const/4 v7, 0x1

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_4

    aput-object v8, v6, v7

    const/4 v7, 0x2

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_5

    aput-object v8, v6, v7

    aput-object v6, v4, v5

    const/4 v5, 0x3

    const/4 v6, 0x4

    new-array v6, v6, [[F

    const/4 v7, 0x0

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_6

    aput-object v8, v6, v7

    const/4 v7, 0x1

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_7

    aput-object v8, v6, v7

    const/4 v7, 0x2

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_8

    aput-object v8, v6, v7

    const/4 v7, 0x3

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_9

    aput-object v8, v6, v7

    aput-object v6, v4, v5

    const/4 v5, 0x4

    const/4 v6, 0x5

    new-array v6, v6, [[F

    const/4 v7, 0x0

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_a

    aput-object v8, v6, v7

    const/4 v7, 0x1

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_b

    aput-object v8, v6, v7

    const/4 v7, 0x2

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_c

    aput-object v8, v6, v7

    const/4 v7, 0x3

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_d

    aput-object v8, v6, v7

    const/4 v7, 0x4

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_e

    aput-object v8, v6, v7

    aput-object v6, v4, v5

    const/4 v5, 0x5

    const/4 v6, 0x6

    new-array v6, v6, [[F

    const/4 v7, 0x0

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_f

    aput-object v8, v6, v7

    const/4 v7, 0x1

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_10

    aput-object v8, v6, v7

    const/4 v7, 0x2

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_11

    aput-object v8, v6, v7

    const/4 v7, 0x3

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_12

    aput-object v8, v6, v7

    const/4 v7, 0x4

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_13

    aput-object v8, v6, v7

    const/4 v7, 0x5

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_14

    aput-object v8, v6, v7

    aput-object v6, v4, v5

    const/4 v5, 0x6

    const/4 v6, 0x7

    new-array v6, v6, [[F

    const/4 v7, 0x0

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_15

    aput-object v8, v6, v7

    const/4 v7, 0x1

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_16

    aput-object v8, v6, v7

    const/4 v7, 0x2

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_17

    aput-object v8, v6, v7

    const/4 v7, 0x3

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_18

    aput-object v8, v6, v7

    const/4 v7, 0x4

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_19

    aput-object v8, v6, v7

    const/4 v7, 0x5

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_1a

    aput-object v8, v6, v7

    const/4 v7, 0x6

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_1b

    aput-object v8, v6, v7

    aput-object v6, v4, v5

    const/4 v5, 0x7

    const/16 v6, 0x8

    new-array v6, v6, [[F

    const/4 v7, 0x0

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_1c

    aput-object v8, v6, v7

    const/4 v7, 0x1

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_1d

    aput-object v8, v6, v7

    const/4 v7, 0x2

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_1e

    aput-object v8, v6, v7

    const/4 v7, 0x3

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_1f

    aput-object v8, v6, v7

    const/4 v7, 0x4

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_20

    aput-object v8, v6, v7

    const/4 v7, 0x5

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_21

    aput-object v8, v6, v7

    const/4 v7, 0x6

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_22

    aput-object v8, v6, v7

    const/4 v7, 0x7

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_23

    aput-object v8, v6, v7

    aput-object v6, v4, v5

    const/16 v5, 0x8

    const/16 v6, 0x9

    new-array v6, v6, [[F

    const/4 v7, 0x0

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_24

    aput-object v8, v6, v7

    const/4 v7, 0x1

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_25

    aput-object v8, v6, v7

    const/4 v7, 0x2

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_26

    aput-object v8, v6, v7

    const/4 v7, 0x3

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_27

    aput-object v8, v6, v7

    const/4 v7, 0x4

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_28

    aput-object v8, v6, v7

    const/4 v7, 0x5

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_29

    aput-object v8, v6, v7

    const/4 v7, 0x6

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_2a

    aput-object v8, v6, v7

    const/4 v7, 0x7

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_2b

    aput-object v8, v6, v7

    const/16 v7, 0x8

    const/4 v8, 0x2

    new-array v8, v8, [F

    fill-array-data v8, :array_2c

    aput-object v8, v6, v7

    aput-object v6, v4, v5

    iput-object v4, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceThumbMaps:[[[F

    .line 127
    new-instance v4, Lcom/nemustech/regina/ElementWorkspaceSwitcher$1;

    invoke-direct {v4, p0}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$1;-><init>(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)V

    iput-object v4, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mDeleteWorkspaceThumbEffectListener:Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;

    .line 140
    new-instance v4, Lcom/nemustech/regina/ElementWorkspaceSwitcher$2;

    invoke-direct {v4, p0}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$2;-><init>(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)V

    iput-object v4, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mDeleteIconTouchListener:Lcom/nemustech/tiffany/world/TFModel$OnTouchListener;

    .line 215
    new-instance v4, Lcom/nemustech/regina/ElementWorkspaceSwitcher$3;

    invoke-direct {v4, p0}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$3;-><init>(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)V

    iput-object v4, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mAnimateToWorkspaceFinishListener:Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;

    .line 256
    new-instance v4, Lcom/nemustech/regina/ElementWorkspaceSwitcher$4;

    invoke-direct {v4, p0}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$4;-><init>(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)V

    iput-object v4, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mDelayHidingHandler:Ljava/lang/Runnable;

    .line 343
    const/4 v4, -0x1

    iput v4, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mNearestIndex:I

    .line 346
    new-instance v4, Lcom/nemustech/regina/ElementWorkspaceSwitcher$5;

    invoke-direct {v4, p0}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$5;-><init>(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)V

    iput-object v4, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceSwitcherTouchListener:Lcom/nemustech/tiffany/world/TFModel$OnTouchListener;

    .line 666
    new-instance v4, Lcom/nemustech/regina/ElementWorkspaceSwitcher$6;

    invoke-direct {v4, p0}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$6;-><init>(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)V

    iput-object v4, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mAddWorkspaceListener:Lcom/nemustech/tiffany/world/TFModel$OnTouchListener;

    .line 480
    new-instance v4, Landroid/os/Handler;

    invoke-direct {v4}, Landroid/os/Handler;-><init>()V

    iput-object v4, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mHandler:Landroid/os/Handler;

    .line 481
    const/4 v4, 0x1

    iput-boolean v4, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mIdle:Z

    .line 482
    iput-object p1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    .line 483
    iget-object v4, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v4}, Lcom/nemustech/regina/ReginaLauncher;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    iput-object v4, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mResources:Landroid/content/res/Resources;

    .line 484
    iput-object p2, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceHolder:Lcom/nemustech/regina/RGWorkspaceHolder;

    .line 485
    iput-object p3, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mElementLocator:Lcom/nemustech/regina/ElementLocator;

    .line 487
    new-instance v4, Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    const/4 v5, 0x0

    invoke-direct {v4, p0, v5}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;-><init>(Lcom/nemustech/regina/ElementWorkspaceSwitcher;Z)V

    iput-object v4, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceSwitcher:Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    .line 488
    iget-object v4, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceSwitcher:Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    const-string v5, "WorkspaceSwitcher"

    iput-object v5, v4, Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;->mDescription:Ljava/lang/String;

    .line 489
    iget-object v4, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceSwitcher:Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    const/4 v5, 0x0

    invoke-virtual {v4, v5}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;->setVisibility(Z)V

    .line 490
    iget-object v4, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceSwitcher:Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    iget-object v5, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v5}, Lcom/nemustech/regina/ReginaLauncher;->getWorld()Lcom/nemustech/tiffany/world/TFWorld;

    move-result-object v5

    invoke-virtual {v4, v5}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;->attachTo(Lcom/nemustech/tiffany/world/TFWorld;)V

    .line 492
    const/high16 v4, -0x4080

    iput v4, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceWidth:F

    .line 493
    const/high16 v4, -0x4080

    iput v4, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceHeight:F

    .line 495
    new-instance v3, Lcom/nemustech/tiffany/world/TFPlaceHolder;

    const/4 v4, 0x1

    invoke-direct {v3, v4}, Lcom/nemustech/tiffany/world/TFPlaceHolder;-><init>(Z)V

    .line 497
    .local v3, thumbHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;
    new-instance v1, Lcom/nemustech/tiffany/world/TFPanel;

    iget v4, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceWidth:F

    iget v5, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceHeight:F

    invoke-direct {v1, v4, v5}, Lcom/nemustech/tiffany/world/TFPanel;-><init>(FF)V

    .line 498
    .local v1, potentialWorkspaceBG:Lcom/nemustech/tiffany/world/TFPanel;
    const-string v4, "potential bg"

    iput-object v4, v1, Lcom/nemustech/tiffany/world/TFPanel;->mDescription:Ljava/lang/String;

    .line 499
    const/4 v4, 0x0

    iget-object v5, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mResources:Landroid/content/res/Resources;

    const v6, 0x7f020094

    invoke-virtual {v1, v4, v5, v6}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/content/res/Resources;I)Lcom/nemustech/tiffany/world/TFError;

    .line 500
    iget-object v4, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mAddWorkspaceListener:Lcom/nemustech/tiffany/world/TFModel$OnTouchListener;

    invoke-virtual {v1, v4}, Lcom/nemustech/tiffany/world/TFPanel;->setOnTouchListener(Lcom/nemustech/tiffany/world/TFModel$OnTouchListener;)V

    .line 501
    invoke-virtual {v1, v3}, Lcom/nemustech/tiffany/world/TFPanel;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 503
    iget v4, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceWidth:F

    const v5, 0x3ecccccd

    mul-float v0, v4, v5

    .line 504
    .local v0, plusPanelSizeDimension:F
    new-instance v2, Lcom/nemustech/tiffany/world/TFPanel;

    invoke-direct {v2, v0, v0}, Lcom/nemustech/tiffany/world/TFPanel;-><init>(FF)V

    .line 505
    .local v2, potentialWorkspacePlus:Lcom/nemustech/tiffany/world/TFPanel;
    const-string v4, "potential plus panel"

    iput-object v4, v2, Lcom/nemustech/tiffany/world/TFPanel;->mDescription:Ljava/lang/String;

    .line 506
    const/4 v4, 0x0

    iget-object v5, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mResources:Landroid/content/res/Resources;

    const v6, 0x7f020095

    invoke-virtual {v2, v4, v5, v6}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/content/res/Resources;I)Lcom/nemustech/tiffany/world/TFError;

    .line 507
    iget-object v4, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mAddWorkspaceListener:Lcom/nemustech/tiffany/world/TFModel$OnTouchListener;

    invoke-virtual {v2, v4}, Lcom/nemustech/tiffany/world/TFPanel;->setOnTouchListener(Lcom/nemustech/tiffany/world/TFModel$OnTouchListener;)V

    .line 508
    invoke-virtual {v2, v3}, Lcom/nemustech/tiffany/world/TFPanel;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 509
    const/4 v4, 0x0

    invoke-virtual {v3, v4}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->setVisibility(Z)V

    .line 510
    const-string v4, "potential workspace thumb"

    iput-object v4, v3, Lcom/nemustech/tiffany/world/TFPlaceHolder;->mDescription:Ljava/lang/String;

    .line 511
    iget-object v4, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceSwitcher:Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    invoke-virtual {v3, v4}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 512
    return-void

    .line 86
    nop

    :array_0
    .array-data 0x4
        0x0t 0x0t 0x0t 0x0t
        0x0t 0x0t 0x0t 0x0t
    .end array-data

    :array_1
    .array-data 0x4
        0x9at 0x99t 0x19t 0xbft
        0x0t 0x0t 0x0t 0x0t
    .end array-data

    :array_2
    .array-data 0x4
        0x9at 0x99t 0x19t 0x3ft
        0x0t 0x0t 0x0t 0x0t
    .end array-data

    :array_3
    .array-data 0x4
        0x9at 0x99t 0x99t 0xbft
        0x0t 0x0t 0x0t 0x0t
    .end array-data

    :array_4
    .array-data 0x4
        0x0t 0x0t 0x0t 0x0t
        0x0t 0x0t 0x0t 0x0t
    .end array-data

    :array_5
    .array-data 0x4
        0x9at 0x99t 0x99t 0x3ft
        0x0t 0x0t 0x0t 0x0t
    .end array-data

    :array_6
    .array-data 0x4
        0x9at 0x99t 0x19t 0xbft
        0x9at 0x99t 0x19t 0x3ft
    .end array-data

    :array_7
    .array-data 0x4
        0x9at 0x99t 0x19t 0x3ft
        0x9at 0x99t 0x19t 0x3ft
    .end array-data

    :array_8
    .array-data 0x4
        0x9at 0x99t 0x19t 0xbft
        0x9at 0x99t 0x19t 0xbft
    .end array-data

    :array_9
    .array-data 0x4
        0x9at 0x99t 0x19t 0x3ft
        0x9at 0x99t 0x19t 0xbft
    .end array-data

    :array_a
    .array-data 0x4
        0x9at 0x99t 0x19t 0xbft
        0x9at 0x99t 0x99t 0x3ft
    .end array-data

    :array_b
    .array-data 0x4
        0x9at 0x99t 0x19t 0x3ft
        0x9at 0x99t 0x99t 0x3ft
    .end array-data

    :array_c
    .array-data 0x4
        0x0t 0x0t 0x0t 0x0t
        0x0t 0x0t 0x0t 0x0t
    .end array-data

    :array_d
    .array-data 0x4
        0x9at 0x99t 0x19t 0xbft
        0x9at 0x99t 0x99t 0xbft
    .end array-data

    :array_e
    .array-data 0x4
        0x9at 0x99t 0x19t 0x3ft
        0x9at 0x99t 0x99t 0xbft
    .end array-data

    :array_f
    .array-data 0x4
        0x9at 0x99t 0x19t 0xbft
        0x9at 0x99t 0x99t 0x3ft
    .end array-data

    :array_10
    .array-data 0x4
        0x9at 0x99t 0x19t 0x3ft
        0x9at 0x99t 0x99t 0x3ft
    .end array-data

    :array_11
    .array-data 0x4
        0x9at 0x99t 0x19t 0xbft
        0x0t 0x0t 0x0t 0x0t
    .end array-data

    :array_12
    .array-data 0x4
        0x9at 0x99t 0x19t 0x3ft
        0x0t 0x0t 0x0t 0x0t
    .end array-data

    :array_13
    .array-data 0x4
        0x9at 0x99t 0x19t 0xbft
        0x9at 0x99t 0x99t 0xbft
    .end array-data

    :array_14
    .array-data 0x4
        0x9at 0x99t 0x19t 0x3ft
        0x9at 0x99t 0x99t 0xbft
    .end array-data

    :array_15
    .array-data 0x4
        0x9at 0x99t 0x19t 0xbft
        0x9at 0x99t 0x99t 0x3ft
    .end array-data

    :array_16
    .array-data 0x4
        0x9at 0x99t 0x19t 0x3ft
        0x9at 0x99t 0x99t 0x3ft
    .end array-data

    :array_17
    .array-data 0x4
        0x9at 0x99t 0x99t 0xbft
        0x0t 0x0t 0x0t 0x0t
    .end array-data

    :array_18
    .array-data 0x4
        0x0t 0x0t 0x0t 0x0t
        0x0t 0x0t 0x0t 0x0t
    .end array-data

    :array_19
    .array-data 0x4
        0x9at 0x99t 0x99t 0x3ft
        0x0t 0x0t 0x0t 0x0t
    .end array-data

    :array_1a
    .array-data 0x4
        0x9at 0x99t 0x19t 0xbft
        0x9at 0x99t 0x99t 0xbft
    .end array-data

    :array_1b
    .array-data 0x4
        0x9at 0x99t 0x19t 0x3ft
        0x9at 0x99t 0x99t 0xbft
    .end array-data

    :array_1c
    .array-data 0x4
        0x9at 0x99t 0x99t 0xbft
        0x9at 0x99t 0x99t 0x3ft
    .end array-data

    :array_1d
    .array-data 0x4
        0x0t 0x0t 0x0t 0x0t
        0x9at 0x99t 0x99t 0x3ft
    .end array-data

    :array_1e
    .array-data 0x4
        0x9at 0x99t 0x99t 0x3ft
        0x9at 0x99t 0x99t 0x3ft
    .end array-data

    :array_1f
    .array-data 0x4
        0x9at 0x99t 0x19t 0xbft
        0x0t 0x0t 0x0t 0x0t
    .end array-data

    :array_20
    .array-data 0x4
        0x9at 0x99t 0x19t 0x3ft
        0x0t 0x0t 0x0t 0x0t
    .end array-data

    :array_21
    .array-data 0x4
        0x9at 0x99t 0x99t 0xbft
        0x9at 0x99t 0x99t 0xbft
    .end array-data

    :array_22
    .array-data 0x4
        0x0t 0x0t 0x0t 0x0t
        0x9at 0x99t 0x99t 0xbft
    .end array-data

    :array_23
    .array-data 0x4
        0x9at 0x99t 0x99t 0x3ft
        0x9at 0x99t 0x99t 0xbft
    .end array-data

    :array_24
    .array-data 0x4
        0x9at 0x99t 0x99t 0xbft
        0x9at 0x99t 0x99t 0x3ft
    .end array-data

    :array_25
    .array-data 0x4
        0x0t 0x0t 0x0t 0x0t
        0x9at 0x99t 0x99t 0x3ft
    .end array-data

    :array_26
    .array-data 0x4
        0x9at 0x99t 0x99t 0x3ft
        0x9at 0x99t 0x99t 0x3ft
    .end array-data

    :array_27
    .array-data 0x4
        0x9at 0x99t 0x99t 0xbft
        0x0t 0x0t 0x0t 0x0t
    .end array-data

    :array_28
    .array-data 0x4
        0x0t 0x0t 0x0t 0x0t
        0x0t 0x0t 0x0t 0x0t
    .end array-data

    :array_29
    .array-data 0x4
        0x9at 0x99t 0x99t 0x3ft
        0x0t 0x0t 0x0t 0x0t
    .end array-data

    :array_2a
    .array-data 0x4
        0x9at 0x99t 0x99t 0xbft
        0x9at 0x99t 0x99t 0xbft
    .end array-data

    :array_2b
    .array-data 0x4
        0x0t 0x0t 0x0t 0x0t
        0x9at 0x99t 0x99t 0xbft
    .end array-data

    :array_2c
    .array-data 0x4
        0x9at 0x99t 0x99t 0x3ft
        0x9at 0x99t 0x99t 0xbft
    .end array-data
.end method

.method static synthetic access$000(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)I
    .locals 1
    .parameter "x0"

    .prologue
    .line 24
    iget v0, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mNearestIndex:I

    return v0
.end method

.method static synthetic access$002(Lcom/nemustech/regina/ElementWorkspaceSwitcher;I)I
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 24
    iput p1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mNearestIndex:I

    return p1
.end method

.method static synthetic access$100(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;
    .locals 1
    .parameter "x0"

    .prologue
    .line 24
    iget-object v0, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceSwitcher:Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    return-object v0
.end method

.method static synthetic access$1000(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)F
    .locals 1
    .parameter "x0"

    .prologue
    .line 24
    iget v0, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mGapX:F

    return v0
.end method

.method static synthetic access$1002(Lcom/nemustech/regina/ElementWorkspaceSwitcher;F)F
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 24
    iput p1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mGapX:F

    return p1
.end method

.method static synthetic access$1100(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)F
    .locals 1
    .parameter "x0"

    .prologue
    .line 24
    iget v0, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mGapY:F

    return v0
.end method

.method static synthetic access$1102(Lcom/nemustech/regina/ElementWorkspaceSwitcher;F)F
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 24
    iput p1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mGapY:F

    return p1
.end method

.method static synthetic access$1200(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)Z
    .locals 1
    .parameter "x0"

    .prologue
    .line 24
    iget-boolean v0, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWithAddPanel:Z

    return v0
.end method

.method static synthetic access$1202(Lcom/nemustech/regina/ElementWorkspaceSwitcher;Z)Z
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 24
    iput-boolean p1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWithAddPanel:Z

    return p1
.end method

.method static synthetic access$1300(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)Z
    .locals 1
    .parameter "x0"

    .prologue
    .line 24
    invoke-direct {p0}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->doWeNeedAddPanel()Z

    move-result v0

    return v0
.end method

.method static synthetic access$1400(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 24
    invoke-direct {p0}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->syncWorkspaceOrder()V

    return-void
.end method

.method static synthetic access$1500(Lcom/nemustech/regina/ElementWorkspaceSwitcher;FFZ)I
    .locals 1
    .parameter "x0"
    .parameter "x1"
    .parameter "x2"
    .parameter "x3"

    .prologue
    .line 24
    invoke-direct {p0, p1, p2, p3}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->findNearestSlot(FFZ)I

    move-result v0

    return v0
.end method

.method static synthetic access$200(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)Lcom/nemustech/regina/ReginaLauncher;
    .locals 1
    .parameter "x0"

    .prologue
    .line 24
    iget-object v0, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    return-object v0
.end method

.method static synthetic access$300(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)Lcom/nemustech/regina/ElementLocator;
    .locals 1
    .parameter "x0"

    .prologue
    .line 24
    iget-object v0, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mElementLocator:Lcom/nemustech/regina/ElementLocator;

    return-object v0
.end method

.method static synthetic access$400(Lcom/nemustech/regina/ElementWorkspaceSwitcher;Lcom/nemustech/tiffany/world/TFHolder;)V
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 24
    invoke-direct {p0, p1}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->startRemoveWorkspaceEffect(Lcom/nemustech/tiffany/world/TFHolder;)V

    return-void
.end method

.method static synthetic access$502(Lcom/nemustech/regina/ElementWorkspaceSwitcher;Z)Z
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 24
    iput-boolean p1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mIdle:Z

    return p1
.end method

.method static synthetic access$600(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)Lcom/nemustech/regina/RGWorkspaceHolder;
    .locals 1
    .parameter "x0"

    .prologue
    .line 24
    iget-object v0, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceHolder:Lcom/nemustech/regina/RGWorkspaceHolder;

    return-object v0
.end method

.method static synthetic access$700(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)Ljava/lang/Runnable;
    .locals 1
    .parameter "x0"

    .prologue
    .line 24
    iget-object v0, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mDelayHidingHandler:Ljava/lang/Runnable;

    return-object v0
.end method

.method static synthetic access$800(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)Landroid/os/Handler;
    .locals 1
    .parameter "x0"

    .prologue
    .line 24
    iget-object v0, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mHandler:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic access$900(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)F
    .locals 1
    .parameter "x0"

    .prologue
    .line 24
    iget v0, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mCorrectionRatio:F

    return v0
.end method

.method static synthetic access$902(Lcom/nemustech/regina/ElementWorkspaceSwitcher;F)F
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 24
    iput p1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mCorrectionRatio:F

    return p1
.end method

.method private banChiselFringeOnWorkspaceThumb(Lcom/nemustech/tiffany/world/TFPlaceHolder;Z)V
    .locals 2
    .parameter "workspaceThumb"
    .parameter "banChiselFringe"

    .prologue
    .line 724
    invoke-virtual {p1}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->getSlotCount()I

    move-result v1

    .line 725
    .local v1, panelCount:I
    const/4 v0, 0x0

    .end local p0
    .local v0, i:I
    :goto_0
    if-ge v0, v1, :cond_0

    .line 726
    invoke-virtual {p1, v0}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->getObjectInSlot(I)Lcom/nemustech/tiffany/world/TFObject;

    move-result-object p0

    check-cast p0, Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {p0, p2}, Lcom/nemustech/tiffany/world/TFPanel;->banChiselFringe(Z)V

    .line 725
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 728
    :cond_0
    return-void
.end method

.method private doWeNeedAddPanel()Z
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 607
    iget-object v0, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v0}, Lcom/nemustech/regina/ReginaLauncher;->getViewMode()I

    move-result v0

    const/4 v1, 0x3

    if-ne v0, v1, :cond_0

    iget-object v0, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mElementLocator:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {v0}, Lcom/nemustech/regina/ElementLocator;->getWorkspaceCount()I

    move-result v0

    iget-object v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v1}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v1

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ReginaPreference;->getWorkspaceMaxCount(Z)I

    move-result v1

    if-ge v0, v1, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    move v0, v2

    goto :goto_0
.end method

.method private findNearestSlot(FFZ)I
    .locals 11
    .parameter "centerX"
    .parameter "centerY"
    .parameter "withAddPanel"

    .prologue
    const/4 v10, 0x0

    .line 319
    const/4 v6, -0x1

    .line 320
    .local v6, nearestIndex:I
    const/4 v5, 0x0

    .line 322
    .local v5, minDeviation:F
    iget-object v8, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceSwitcher:Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    invoke-virtual {v8}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;->getSlotCount()I

    move-result v8

    if-eqz p3, :cond_2

    move v9, v10

    :goto_0
    add-int v7, v8, v9

    .line 323
    .local v7, workspaceCount:I
    const/4 v8, 0x2

    new-array v0, v8, [F

    .line 325
    .local v0, coordinate:[F
    const/4 v4, 0x0

    .local v4, i:I
    :goto_1
    if-ge v4, v7, :cond_3

    .line 326
    invoke-direct {p0, v7, v4, v0}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->getMappedCoordinates(II[F)V

    .line 327
    aget v8, v0, v10

    sub-float v1, v8, p1

    .line 328
    .local v1, devX:F
    const/4 v8, 0x1

    aget v8, v0, v8

    sub-float v2, v8, p2

    .line 329
    .local v2, devY:F
    mul-float v8, v1, v1

    mul-float v9, v2, v2

    add-float v3, v8, v9

    .line 330
    .local v3, deviation:F
    if-eqz v4, :cond_0

    cmpg-float v8, v3, v5

    if-gez v8, :cond_1

    .line 331
    :cond_0
    move v5, v3

    .line 332
    move v6, v4

    .line 325
    :cond_1
    add-int/lit8 v4, v4, 0x1

    goto :goto_1

    .line 322
    .end local v0           #coordinate:[F
    .end local v1           #devX:F
    .end local v2           #devY:F
    .end local v3           #deviation:F
    .end local v4           #i:I
    .end local v7           #workspaceCount:I
    :cond_2
    const/4 v9, -0x1

    goto :goto_0

    .line 335
    .restart local v0       #coordinate:[F
    .restart local v4       #i:I
    .restart local v7       #workspaceCount:I
    :cond_3
    return v6
.end method

.method private findWorkspaceOfGivenUID(Ljava/util/LinkedList;I)Lcom/nemustech/tiffany/world/TFObject;
    .locals 3
    .parameter
    .parameter "uid"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/LinkedList",
            "<",
            "Lcom/nemustech/tiffany/world/TFObject;",
            ">;I)",
            "Lcom/nemustech/tiffany/world/TFObject;"
        }
    .end annotation

    .prologue
    .line 268
    .local p1, itemList:Ljava/util/LinkedList;,"Ljava/util/LinkedList<Lcom/nemustech/tiffany/world/TFObject;>;"
    invoke-virtual {p1}, Ljava/util/LinkedList;->iterator()Ljava/util/Iterator;

    move-result-object v0

    .local v0, i$:Ljava/util/Iterator;
    :cond_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_1

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/nemustech/tiffany/world/TFObject;

    .line 269
    .local v1, object:Lcom/nemustech/tiffany/world/TFObject;
    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Lcom/nemustech/tiffany/world/TFObject;->getReservedParam(I)I

    move-result v2

    if-ne v2, p2, :cond_0

    move-object v2, v1

    .line 271
    .end local v1           #object:Lcom/nemustech/tiffany/world/TFObject;
    :goto_0
    return-object v2

    :cond_1
    const/4 v2, 0x0

    goto :goto_0
.end method

.method private getMappedCoordinates(II[F)V
    .locals 4
    .parameter "workspaceCount"
    .parameter "workspaceIdx"
    .parameter "coordinate"

    .prologue
    const/4 v3, 0x0

    const/4 v2, 0x1

    .line 472
    iget-object v0, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceThumbMaps:[[[F

    sub-int v1, p1, v2

    aget-object v0, v0, v1

    aget-object v0, v0, p2

    aget v0, v0, v3

    iget v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceWidth:F

    mul-float/2addr v0, v1

    aput v0, p3, v3

    .line 473
    iget-object v0, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceThumbMaps:[[[F

    sub-int v1, p1, v2

    aget-object v0, v0, v1

    aget-object v0, v0, p2

    aget v0, v0, v2

    iget v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceHeight:F

    mul-float/2addr v0, v1

    aput v0, p3, v2

    .line 474
    return-void
.end method

.method private startRemoveWorkspaceEffect(Lcom/nemustech/tiffany/world/TFHolder;)V
    .locals 4
    .parameter "workspaceThumbToDelete"

    .prologue
    const/high16 v3, -0x3f40

    .line 594
    invoke-virtual {p1}, Lcom/nemustech/tiffany/world/TFHolder;->getWorld()Lcom/nemustech/tiffany/world/TFWorld;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nemustech/tiffany/world/TFWorld;->lock()V

    .line 595
    const/4 v0, 0x2

    invoke-static {v3}, Ljava/lang/Math;->abs(F)F

    move-result v1

    const/high16 v2, 0x4348

    div-float/2addr v1, v2

    const/4 v2, 0x0

    invoke-virtual {p1, v0, v3, v1, v2}, Lcom/nemustech/tiffany/world/TFHolder;->move(IFFZ)V

    .line 596
    const/4 v0, 0x0

    const-wide/16 v1, 0xc8

    invoke-virtual {p1, v0, v1, v2}, Lcom/nemustech/tiffany/world/TFHolder;->fade(FJ)V

    .line 597
    iget-object v0, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mDeleteWorkspaceThumbEffectListener:Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;

    invoke-virtual {p1, v0}, Lcom/nemustech/tiffany/world/TFHolder;->setEffectFinishListener(Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;)V

    .line 598
    return-void
.end method

.method private syncWorkspaceOrder()V
    .locals 21

    .prologue
    .line 278
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v18, v0

    invoke-virtual/range {v18 .. v18}, Lcom/nemustech/regina/ReginaLauncher;->isSecretMode()Z

    move-result v5

    .line 279
    .local v5, isSecret:Z
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v18, v0

    invoke-virtual/range {v18 .. v18}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v10

    .line 280
    .local v10, prefs:Lcom/nemustech/regina/ReginaPreference;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceSwitcher:Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    move-object/from16 v18, v0

    invoke-virtual/range {v18 .. v18}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;->getSlotCount()I

    move-result v18

    const/16 v19, 0x1

    sub-int v3, v18, v19

    .line 281
    .local v3, count:I
    const-string v18, "ElementWorkspaceSwitcher"

    new-instance v19, Ljava/lang/StringBuilder;

    invoke-direct/range {v19 .. v19}, Ljava/lang/StringBuilder;-><init>()V

    const-string v20, "syncWorkspaceOrder count : "

    invoke-virtual/range {v19 .. v20}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v19

    move-object/from16 v0, v19

    move v1, v3

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v19

    const-string v20, " isSecret:"

    invoke-virtual/range {v19 .. v20}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v19

    move-object/from16 v0, v19

    move v1, v5

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v19

    invoke-virtual/range {v19 .. v19}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v19

    invoke-static/range {v18 .. v19}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 283
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v18, v0

    invoke-virtual/range {v18 .. v18}, Lcom/nemustech/regina/ReginaLauncher;->getElementLocator()Lcom/nemustech/regina/ElementLocator;

    move-result-object v18

    invoke-virtual/range {v18 .. v18}, Lcom/nemustech/regina/ElementLocator;->getWorkspaceHolder()Lcom/nemustech/tiffany/world/TFHolder;

    move-result-object v12

    .line 284
    .local v12, rgWorkspaceHolder:Lcom/nemustech/tiffany/world/TFHolder;
    invoke-virtual {v12}, Lcom/nemustech/tiffany/world/TFHolder;->getItemProvider()Lcom/nemustech/tiffany/world/TFItemProvider;

    move-result-object v11

    .line 285
    .local v11, rgItemProvider:Lcom/nemustech/tiffany/world/TFItemProvider;,"Lcom/nemustech/tiffany/world/TFItemProvider<Lcom/nemustech/tiffany/world/TFObject;>;"
    invoke-virtual {v11}, Lcom/nemustech/tiffany/world/TFItemProvider;->getItemList()Ljava/util/LinkedList;

    move-result-object v8

    .line 286
    .local v8, originItemList:Ljava/util/LinkedList;,"Ljava/util/LinkedList<Lcom/nemustech/tiffany/world/TFObject;>;"
    new-instance v6, Ljava/util/LinkedList;

    invoke-direct {v6}, Ljava/util/LinkedList;-><init>()V

    .line 288
    .local v6, newItemList:Ljava/util/LinkedList;,"Ljava/util/LinkedList<Lcom/nemustech/tiffany/world/TFObject;>;"
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v18, v0

    invoke-virtual/range {v18 .. v18}, Lcom/nemustech/regina/ReginaLauncher;->getElementLocator()Lcom/nemustech/regina/ElementLocator;

    move-result-object v18

    invoke-virtual/range {v18 .. v18}, Lcom/nemustech/regina/ElementLocator;->getWorkspaceBrowser()Lcom/nemustech/regina/WorkspaceBrowser;

    move-result-object v17

    .line 289
    .local v17, wsBrowser:Lcom/nemustech/regina/WorkspaceBrowser;
    new-instance v9, Ljava/util/LinkedList;

    invoke-direct {v9}, Ljava/util/LinkedList;-><init>()V

    .line 290
    .local v9, originThumbList:Ljava/util/LinkedList;,"Ljava/util/LinkedList<Lcom/nemustech/tiffany/world/TFObject;>;"
    invoke-virtual/range {v17 .. v17}, Lcom/nemustech/regina/WorkspaceBrowser;->getSlotCount()I

    move-result v18

    move v0, v3

    move/from16 v1, v18

    if-eq v0, v1, :cond_0

    new-instance v18, Ljava/lang/IllegalStateException;

    const-string v19, "Workspace count mismatch"

    invoke-direct/range {v18 .. v19}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v18

    .line 293
    :cond_0
    const/4 v4, 0x0

    .local v4, i:I
    :goto_0
    if-ge v4, v3, :cond_1

    .line 294
    const/16 v18, 0x0

    invoke-virtual/range {v17 .. v18}, Lcom/nemustech/regina/WorkspaceBrowser;->getObjectInSlot(I)Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v14

    .line 295
    .local v14, thumbPanel:Lcom/nemustech/tiffany/world/TFObject;
    invoke-virtual {v9, v14}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    .line 296
    const/16 v18, 0x0

    move-object v0, v14

    move-object/from16 v1, v17

    move/from16 v2, v18

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/tiffany/world/TFObject;->detachFrom(Lcom/nemustech/tiffany/world/TFHolder;Z)V

    .line 293
    add-int/lit8 v4, v4, 0x1

    goto :goto_0

    .line 299
    .end local v14           #thumbPanel:Lcom/nemustech/tiffany/world/TFObject;
    :cond_1
    const/4 v4, 0x0

    :goto_1
    if-ge v4, v3, :cond_2

    .line 300
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceSwitcher:Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    move v1, v4

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;->getObjectInSlot(I)Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v16

    check-cast v16, Lcom/nemustech/tiffany/world/TFPlaceHolder;

    .line 301
    .local v16, workspace:Lcom/nemustech/tiffany/world/TFPlaceHolder;
    const/16 v18, 0x0

    move-object/from16 v0, v16

    move/from16 v1, v18

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->getReservedParam(I)I

    move-result v15

    .line 302
    .local v15, uid:I
    const-string v18, "ElementWorkspaceSwitcher"

    new-instance v19, Ljava/lang/StringBuilder;

    invoke-direct/range {v19 .. v19}, Ljava/lang/StringBuilder;-><init>()V

    const-string v20, "syncWorkspaceOrder uid of index "

    invoke-virtual/range {v19 .. v20}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v19

    move-object/from16 v0, v19

    move v1, v4

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v19

    const-string v20, " is "

    invoke-virtual/range {v19 .. v20}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v19

    move-object/from16 v0, v19

    move v1, v15

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v19

    invoke-virtual/range {v19 .. v19}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v19

    invoke-static/range {v18 .. v19}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 303
    move-object/from16 v0, p0

    move-object v1, v8

    move v2, v15

    invoke-direct {v0, v1, v2}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->findWorkspaceOfGivenUID(Ljava/util/LinkedList;I)Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v7

    .line 304
    .local v7, object:Lcom/nemustech/tiffany/world/TFObject;
    const-string v18, "ElementWorkspaceSwitcher"

    new-instance v19, Ljava/lang/StringBuilder;

    invoke-direct/range {v19 .. v19}, Ljava/lang/StringBuilder;-><init>()V

    const-string v20, "syncWorkspaceOrder object for the uid was "

    invoke-virtual/range {v19 .. v20}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v19

    move-object v0, v7

    iget-object v0, v0, Lcom/nemustech/tiffany/world/TFObject;->mDescription:Ljava/lang/String;

    move-object/from16 v20, v0

    invoke-virtual/range {v19 .. v20}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v19

    invoke-virtual/range {v19 .. v19}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v19

    invoke-static/range {v18 .. v19}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 305
    invoke-virtual {v6, v7}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    .line 306
    move-object/from16 v0, p0

    move-object v1, v9

    move v2, v15

    invoke-direct {v0, v1, v2}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->findWorkspaceOfGivenUID(Ljava/util/LinkedList;I)Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v13

    .line 307
    .local v13, thumb:Lcom/nemustech/tiffany/world/TFObject;
    move-object v0, v13

    move-object/from16 v1, v17

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFObject;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 309
    invoke-virtual {v10, v4, v15, v5}, Lcom/nemustech/regina/ReginaPreference;->setWorkspaceUID(IIZ)V

    .line 299
    add-int/lit8 v4, v4, 0x1

    goto :goto_1

    .line 312
    .end local v7           #object:Lcom/nemustech/tiffany/world/TFObject;
    .end local v13           #thumb:Lcom/nemustech/tiffany/world/TFObject;
    .end local v15           #uid:I
    .end local v16           #workspace:Lcom/nemustech/tiffany/world/TFPlaceHolder;
    :cond_2
    invoke-virtual {v11, v6}, Lcom/nemustech/tiffany/world/TFItemProvider;->setItemList(Ljava/util/LinkedList;)V

    .line 313
    invoke-virtual {v12}, Lcom/nemustech/tiffany/world/TFHolder;->refreshHolder()V

    .line 314
    invoke-virtual {v10}, Lcom/nemustech/regina/ReginaPreference;->commitPref()Z

    .line 316
    return-void
.end method

.method private updateThumbs(I)V
    .locals 4
    .parameter "workspaceIdx"

    .prologue
    .line 841
    iget-object v3, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mElementLocator:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {v3}, Lcom/nemustech/regina/ElementLocator;->getWorkspaceCount()I

    move-result v1

    .line 842
    .local v1, size:I
    const/4 v0, 0x0

    .local v0, index:I
    :goto_0
    if-ge v0, v1, :cond_1

    .line 843
    iget-object v3, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mElementLocator:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {v3, v0}, Lcom/nemustech/regina/ElementLocator;->getWorkspace(I)Lcom/nemustech/regina/RGWorkspace;

    move-result-object v2

    .line 846
    .local v2, workspace:Lcom/nemustech/regina/RGWorkspace;
    invoke-virtual {v2}, Lcom/nemustech/regina/RGWorkspace;->isRequestedUpdate()Z

    move-result v3

    if-eqz v3, :cond_0

    .line 847
    const/high16 v3, 0x3f00

    invoke-virtual {v2, v3}, Lcom/nemustech/regina/RGWorkspace;->updateThumb(F)V

    .line 842
    :cond_0
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 850
    .end local v2           #workspace:Lcom/nemustech/regina/RGWorkspace;
    :cond_1
    return-void
.end method


# virtual methods
.method public addWorkspaceThumb(ILcom/nemustech/regina/RGWorkspace;)V
    .locals 14
    .parameter "idx"
    .parameter "workspace"

    .prologue
    const/high16 v13, 0x3f00

    const/high16 v12, -0x4080

    const/4 v11, 0x1

    .line 538
    :try_start_0
    new-instance v5, Lcom/nemustech/tiffany/world/TFPlaceHolder;

    const/4 v8, 0x1

    invoke-direct {v5, v8}, Lcom/nemustech/tiffany/world/TFPlaceHolder;-><init>(Z)V

    .line 539
    .local v5, thumbHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;
    const/4 v6, 0x0

    .line 540
    .local v6, workspaceBackgroundPanel:Lcom/nemustech/tiffany/world/TFPanel;
    const/4 v7, 0x0

    .line 542
    .local v7, workspaceElementsPanel:Lcom/nemustech/tiffany/world/TFPanel;
    invoke-virtual/range {p2 .. p2}, Lcom/nemustech/regina/RGWorkspace;->getBackgroundThumbPanel()Lcom/nemustech/tiffany/world/TFPanel;

    move-result-object v8

    invoke-virtual {v8}, Lcom/nemustech/tiffany/world/TFPanel;->clone()Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Lcom/nemustech/tiffany/world/TFPanel;

    move-object v0, v8

    check-cast v0, Lcom/nemustech/tiffany/world/TFPanel;

    move-object v6, v0

    .line 543
    const/4 v8, 0x1

    invoke-virtual {v6, v8}, Lcom/nemustech/tiffany/world/TFPanel;->setVisibility(Z)V

    .line 544
    const/high16 v8, 0x3f80

    invoke-virtual {v6, v8}, Lcom/nemustech/tiffany/world/TFPanel;->setOpacity(F)V

    .line 545
    iget-object v8, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceSwitcherTouchListener:Lcom/nemustech/tiffany/world/TFModel$OnTouchListener;

    invoke-virtual {v6, v8}, Lcom/nemustech/tiffany/world/TFPanel;->setOnTouchListener(Lcom/nemustech/tiffany/world/TFModel$OnTouchListener;)V

    .line 547
    invoke-virtual {v6}, Lcom/nemustech/tiffany/world/TFPanel;->getWidth()F

    move-result v8

    const v9, 0x400ccccd

    div-float v3, v8, v9

    .line 548
    .local v3, deletePanelDimension:F
    new-instance v2, Lcom/nemustech/tiffany/world/TFPanel;

    invoke-direct {v2, v3, v3}, Lcom/nemustech/tiffany/world/TFPanel;-><init>(FF)V

    .line 549
    .local v2, deleteIconPanel:Lcom/nemustech/tiffany/world/TFPanel;
    const/4 v8, 0x0

    iget-object v9, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mResources:Landroid/content/res/Resources;

    const v10, 0x7f020096

    invoke-virtual {v2, v8, v9, v10}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/content/res/Resources;I)Lcom/nemustech/tiffany/world/TFError;

    .line 550
    const/4 v8, 0x1

    invoke-virtual {v2, v8}, Lcom/nemustech/tiffany/world/TFPanel;->setVisibility(Z)V

    .line 551
    const/4 v8, 0x0

    invoke-virtual {v2, v8}, Lcom/nemustech/tiffany/world/TFPanel;->setOpacity(F)V

    .line 552
    const/4 v8, 0x0

    invoke-virtual {v2, v8}, Lcom/nemustech/tiffany/world/TFPanel;->setTouchable(Z)V

    .line 553
    invoke-virtual {v6}, Lcom/nemustech/tiffany/world/TFPanel;->getWidth()F

    move-result v8

    neg-float v8, v8

    mul-float/2addr v8, v13

    invoke-virtual {v6}, Lcom/nemustech/tiffany/world/TFPanel;->getHeight()F

    move-result v9

    mul-float/2addr v9, v13

    const/4 v10, 0x0

    invoke-virtual {v2, v8, v9, v10}, Lcom/nemustech/tiffany/world/TFPanel;->locate(FFF)V

    .line 554
    iget-object v8, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mDeleteIconTouchListener:Lcom/nemustech/tiffany/world/TFModel$OnTouchListener;

    invoke-virtual {v2, v8}, Lcom/nemustech/tiffany/world/TFPanel;->setOnTouchListener(Lcom/nemustech/tiffany/world/TFModel$OnTouchListener;)V

    .line 555
    const-string v8, "deletion icon on thumb"

    iput-object v8, v2, Lcom/nemustech/tiffany/world/TFPanel;->mDescription:Ljava/lang/String;

    .line 556
    const-string v8, "ElementWorkspaceSwitcher"

    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    const-string v10, "deletePanel: "

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    const/4 v10, 0x1

    invoke-static {v8, v9, v10}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 558
    invoke-virtual/range {p2 .. p2}, Lcom/nemustech/regina/RGWorkspace;->getElementPanel()Lcom/nemustech/tiffany/world/TFPanel;

    move-result-object v8

    invoke-virtual {v8}, Lcom/nemustech/tiffany/world/TFPanel;->clone()Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Lcom/nemustech/tiffany/world/TFPanel;

    move-object v0, v8

    check-cast v0, Lcom/nemustech/tiffany/world/TFPanel;

    move-object v7, v0

    .line 559
    const/4 v8, 0x1

    invoke-virtual {v7, v8}, Lcom/nemustech/tiffany/world/TFPanel;->setVisibility(Z)V

    .line 560
    const/high16 v8, 0x3f80

    invoke-virtual {v7, v8}, Lcom/nemustech/tiffany/world/TFPanel;->setOpacity(F)V

    .line 561
    iget-object v8, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceSwitcherTouchListener:Lcom/nemustech/tiffany/world/TFModel$OnTouchListener;

    invoke-virtual {v7, v8}, Lcom/nemustech/tiffany/world/TFPanel;->setOnTouchListener(Lcom/nemustech/tiffany/world/TFModel$OnTouchListener;)V

    .line 563
    iget-object v8, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mEventConsumerList:Ljava/util/LinkedList;

    invoke-virtual {v8, v6}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    .line 564
    iget-object v8, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mEventConsumerList:Ljava/util/LinkedList;

    invoke-virtual {v8, v7}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    .line 565
    iget-object v8, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mEventConsumerList:Ljava/util/LinkedList;

    invoke-virtual {v8, v2}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    .line 567
    invoke-virtual {v6, v5}, Lcom/nemustech/tiffany/world/TFPanel;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 568
    invoke-virtual {v7, v5}, Lcom/nemustech/tiffany/world/TFPanel;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 569
    invoke-virtual {v2, v5}, Lcom/nemustech/tiffany/world/TFPanel;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 570
    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    const-string v9, "workspace thumb "

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, "for workspace switcher "

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    iput-object v8, v5, Lcom/nemustech/tiffany/world/TFPlaceHolder;->mDescription:Ljava/lang/String;

    .line 571
    const/4 v8, 0x0

    invoke-direct {p0, v5, v8}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->banChiselFringeOnWorkspaceThumb(Lcom/nemustech/tiffany/world/TFPlaceHolder;Z)V

    .line 574
    const/4 v8, 0x1

    invoke-virtual {v5, v8}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->prepareReservedParam(I)V

    .line 575
    const/4 v8, 0x0

    invoke-virtual/range {p2 .. p2}, Lcom/nemustech/regina/RGWorkspace;->getUID()I

    move-result v9

    invoke-virtual {v5, v8, v9}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->setReservedParam(II)V

    .line 576
    iget-object v8, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceSwitcher:Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    invoke-virtual {v5, v8, p1}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;I)V

    .line 581
    iget v8, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceWidth:F

    cmpl-float v8, v8, v12

    if-eqz v8, :cond_0

    iget v8, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceHeight:F

    cmpl-float v8, v8, v12

    if-nez v8, :cond_1

    .line 582
    :cond_0
    invoke-virtual {v6}, Lcom/nemustech/tiffany/world/TFPanel;->getWidth()F

    move-result v8

    iput v8, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceWidth:F

    .line 583
    invoke-virtual {v6}, Lcom/nemustech/tiffany/world/TFPanel;->getHeight()F

    move-result v8

    iput v8, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceHeight:F

    .line 584
    iget-object v8, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceSwitcher:Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    iget-object v9, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceSwitcher:Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    invoke-virtual {v9}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;->getSlotCount()I

    move-result v9

    sub-int/2addr v9, v11

    invoke-virtual {v8, v9}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;->getObjectInSlot(I)Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v8

    check-cast v8, Lcom/nemustech/tiffany/world/TFPlaceHolder;

    check-cast v8, Lcom/nemustech/tiffany/world/TFPlaceHolder;

    const/4 v9, 0x0

    invoke-virtual {v8, v9}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->getObjectInSlot(I)Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v1

    check-cast v1, Lcom/nemustech/tiffany/world/TFPanel;

    .line 585
    .local v1, addPanel:Lcom/nemustech/tiffany/world/TFPanel;
    iget v8, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceWidth:F

    iget v9, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceHeight:F

    invoke-virtual {v1, v8, v9}, Lcom/nemustech/tiffany/world/TFPanel;->setSize(FF)V
    :try_end_0
    .catch Ljava/lang/CloneNotSupportedException; {:try_start_0 .. :try_end_0} :catch_0

    .line 591
    .end local v1           #addPanel:Lcom/nemustech/tiffany/world/TFPanel;
    .end local v2           #deleteIconPanel:Lcom/nemustech/tiffany/world/TFPanel;
    .end local v3           #deletePanelDimension:F
    .end local v5           #thumbHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;
    .end local v6           #workspaceBackgroundPanel:Lcom/nemustech/tiffany/world/TFPanel;
    .end local v7           #workspaceElementsPanel:Lcom/nemustech/tiffany/world/TFPanel;
    :cond_1
    :goto_0
    return-void

    .line 587
    :catch_0
    move-exception v8

    move-object v4, v8

    .line 589
    .local v4, e:Ljava/lang/CloneNotSupportedException;
    invoke-virtual {v4}, Ljava/lang/CloneNotSupportedException;->printStackTrace()V

    goto :goto_0
.end method

.method public animateToWorkspaceEditFromWorkspaceSwitcher()V
    .locals 14

    .prologue
    const/high16 v13, 0x3f80

    const/4 v12, 0x0

    const/4 v3, 0x0

    const/4 v11, 0x1

    .line 638
    iget-object v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v1}, Lcom/nemustech/regina/ReginaLauncher;->getViewMode()I

    move-result v1

    if-eq v1, v11, :cond_1

    .line 639
    const-string v1, "ElementWorkspaceSwitcher"

    const-string v2, "View mode must be ReginaLauncher.VIEW_WORKSPACE_SWITCHER to enter VIEW_WORKSPACE_EDIT"

    invoke-static {v1, v2}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 664
    :cond_0
    return-void

    .line 642
    :cond_1
    iget-object v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    const/4 v2, 0x3

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ReginaLauncher;->setViewMode(I)V

    .line 643
    invoke-direct {p0}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->doWeNeedAddPanel()Z

    move-result v9

    .line 644
    .local v9, needAddPanel:Z
    const/4 v1, 0x2

    new-array v6, v1, [F

    .line 645
    .local v6, coordinate:[F
    iget-object v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceSwitcher:Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    invoke-virtual {v1}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;->getSlotCount()I

    move-result v1

    if-eqz v9, :cond_2

    move v2, v12

    :goto_0
    add-int v7, v1, v2

    .line 647
    .local v7, count:I
    const/4 v10, 0x0

    .local v10, workspaceIdx:I
    :goto_1
    if-ge v10, v7, :cond_0

    .line 648
    iget-object v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceSwitcher:Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    invoke-virtual {v1, v10}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;->getObjectInSlot(I)Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v0

    check-cast v0, Lcom/nemustech/tiffany/world/TFPlaceHolder;

    .line 649
    .local v0, workspaceThumb:Lcom/nemustech/tiffany/world/TFPlaceHolder;
    invoke-direct {p0, v7, v10, v6}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->getMappedCoordinates(II[F)V

    .line 650
    if-eqz v9, :cond_3

    sub-int v1, v7, v11

    if-ne v10, v1, :cond_3

    .line 652
    aget v1, v6, v12

    aget v2, v6, v11

    invoke-virtual {v0, v1, v2, v3}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->locate(FFF)V

    .line 653
    invoke-virtual {v0, v3}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->setOpacity(F)V

    .line 654
    invoke-virtual {v0, v11}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->setVisibility(Z)V

    .line 655
    const-wide/16 v1, 0x168

    invoke-virtual {v0, v13, v1, v2}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->fade(FJ)V

    .line 647
    :goto_2
    add-int/lit8 v10, v10, 0x1

    goto :goto_1

    .line 645
    .end local v0           #workspaceThumb:Lcom/nemustech/tiffany/world/TFPlaceHolder;
    .end local v7           #count:I
    .end local v10           #workspaceIdx:I
    :cond_2
    const/4 v2, -0x1

    goto :goto_0

    .line 658
    .restart local v0       #workspaceThumb:Lcom/nemustech/tiffany/world/TFPlaceHolder;
    .restart local v7       #count:I
    .restart local v10       #workspaceIdx:I
    :cond_3
    aget v1, v6, v12

    aget v2, v6, v11

    const-wide/16 v4, 0xb4

    invoke-virtual/range {v0 .. v5}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->move(FFFJ)V

    .line 659
    invoke-virtual {v0}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->getSlotCount()I

    move-result v1

    sub-int/2addr v1, v11

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->getModelInSlot(I)Lcom/nemustech/tiffany/world/TFModel;

    move-result-object v8

    check-cast v8, Lcom/nemustech/tiffany/world/TFPanel;

    .line 660
    .local v8, deleteIconPanel:Lcom/nemustech/tiffany/world/TFPanel;
    invoke-virtual {v8, v11}, Lcom/nemustech/tiffany/world/TFPanel;->setTouchable(Z)V

    .line 661
    const-wide/16 v1, 0x96

    invoke-virtual {v8, v13, v1, v2}, Lcom/nemustech/tiffany/world/TFPanel;->fade(FJ)V

    goto :goto_2
.end method

.method public animateToWorkspaceFromWorkspaceSwitcher(I)V
    .locals 10
    .parameter "workspaceIdx"

    .prologue
    .line 802
    iget-object v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    const/4 v2, 0x2

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ReginaLauncher;->setViewMode(I)V

    .line 803
    iget-object v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceSwitcher:Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;->setEffectFinishListener(Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;)V

    .line 804
    iget-object v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mElementLocator:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {v1}, Lcom/nemustech/regina/ElementLocator;->getWorkspaceCount()I

    move-result v9

    .line 806
    .local v9, workspaceCount:I
    if-gez p1, :cond_0

    .line 807
    iget-object v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mElementLocator:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {v1}, Lcom/nemustech/regina/ElementLocator;->getCurrentWorkspaceIndex()I

    move-result p1

    .line 810
    :cond_0
    const-string v1, "ElementWorkspaceSwitcher"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "animateToWorkspaceEffect(int "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x1

    invoke-static {v1, v2, v3}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 811
    iget-object v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceHolder:Lcom/nemustech/regina/RGWorkspaceHolder;

    const/4 v2, 0x0

    invoke-virtual {v1, p1, v2}, Lcom/nemustech/regina/RGWorkspaceHolder;->setHeadItemIndex(IZ)V

    .line 812
    iget-object v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceHolder:Lcom/nemustech/regina/RGWorkspaceHolder;

    invoke-virtual {v1}, Lcom/nemustech/regina/RGWorkspaceHolder;->refreshHolder()V

    .line 814
    iget-object v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mElementLocator:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {v1, p1}, Lcom/nemustech/regina/ElementLocator;->distributeWorkspaceViews(I)V

    .line 816
    iget-object v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceSwitcher:Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    invoke-virtual {v1}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;->getSlotCount()I

    move-result v7

    .line 817
    .local v7, count:I
    const/4 v8, 0x0

    .local v8, idx:I
    :goto_0
    if-ge v8, v7, :cond_3

    .line 818
    iget-object v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceSwitcher:Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    invoke-virtual {v1, v8}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;->getObjectInSlot(I)Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v0

    check-cast v0, Lcom/nemustech/tiffany/world/TFPlaceHolder;

    .line 819
    .local v0, workspaceThumb:Lcom/nemustech/tiffany/world/TFPlaceHolder;
    if-ge v8, v9, :cond_3

    .line 820
    if-ne v8, p1, :cond_1

    .line 821
    const/4 v1, 0x0

    const/4 v2, 0x0

    const/4 v3, 0x0

    const-wide/16 v4, 0xdc

    invoke-virtual/range {v0 .. v5}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->move(FFFJ)V

    .line 817
    :goto_1
    add-int/lit8 v8, v8, 0x1

    goto :goto_0

    .line 823
    :cond_1
    if-ge v8, p1, :cond_2

    .line 824
    const v1, -0x40733333

    const/4 v2, 0x0

    const/4 v3, 0x0

    const-wide/16 v4, 0xdc

    invoke-virtual/range {v0 .. v5}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->move(FFFJ)V

    goto :goto_1

    .line 827
    :cond_2
    const v1, 0x3f8ccccd

    const/4 v2, 0x0

    const/4 v3, 0x0

    const-wide/16 v4, 0xdc

    invoke-virtual/range {v0 .. v5}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->move(FFFJ)V

    goto :goto_1

    .line 834
    .end local v0           #workspaceThumb:Lcom/nemustech/tiffany/world/TFPlaceHolder;
    :cond_3
    iget-object v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceSwitcher:Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    const/4 v2, 0x0

    const/4 v3, 0x0

    const v4, -0x42333333

    const-wide/16 v5, 0xdc

    invoke-virtual/range {v1 .. v6}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;->move(FFFJ)V

    .line 835
    iget-object v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceSwitcher:Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    iget-object v2, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mAnimateToWorkspaceFinishListener:Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;->setEffectFinishListener(Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;)V

    .line 836
    const-string v1, "ElementWorkspaceSwitcher"

    const-string v2, "VIEW_WORKSPACE"

    const/4 v3, 0x0

    invoke-static {v1, v2, v3}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 837
    iget-object v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceSwitcher:Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    invoke-virtual {v1}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;->lock()V

    .line 838
    return-void
.end method

.method public animateToWorkspaceSwitcherFrom(I)V
    .locals 13
    .parameter "currentView"

    .prologue
    .line 734
    iget-boolean v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mIdle:Z

    if-nez v1, :cond_0

    .line 799
    :goto_0
    return-void

    .line 738
    :cond_0
    iget-object v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceSwitcher:Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;->setEffectFinishListener(Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;)V

    .line 740
    iget-object v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mElementLocator:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {v1}, Lcom/nemustech/regina/ElementLocator;->getCurrentWorkspaceIndex()I

    move-result v10

    .line 741
    .local v10, currentWorkspaceIdx:I
    iget-object v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mElementLocator:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {v1}, Lcom/nemustech/regina/ElementLocator;->getWorkspaceCount()I

    move-result v9

    .line 743
    .local v9, currentWorkspaceCount:I
    invoke-direct {p0, v10}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->updateThumbs(I)V

    .line 745
    if-nez p1, :cond_3

    .line 746
    iget-object v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceHolder:Lcom/nemustech/regina/RGWorkspaceHolder;

    invoke-virtual {v1, v10}, Lcom/nemustech/regina/RGWorkspaceHolder;->getObjectInSlotByItemIndex(I)Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v0

    check-cast v0, Lcom/nemustech/regina/RGWorkspace;

    invoke-virtual {v0}, Lcom/nemustech/regina/RGWorkspace;->getWorkspaceView()Lcom/nemustech/regina/WorkspaceView;

    move-result-object v1

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/WorkspaceView;->dispatchDisplayVisibility(Z)V

    .line 747
    iget-object v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ReginaLauncher;->setForegroundVisibility(Z)V

    .line 748
    iget-object v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceSwitcher:Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    const/4 v2, 0x0

    const/4 v3, 0x0

    const/4 v4, 0x0

    invoke-virtual {v1, v2, v3, v4}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;->locate(FFF)V

    .line 749
    iget-object v0, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceSwitcher:Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    const/4 v1, 0x0

    const/4 v2, 0x0

    const/high16 v3, -0x3f30

    const-wide/16 v4, 0xb4

    invoke-virtual/range {v0 .. v5}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;->move(FFFJ)V

    .line 756
    :cond_1
    :goto_1
    const/4 v1, 0x2

    new-array v7, v1, [F

    .line 757
    .local v7, coordinate:[F
    iget-object v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceSwitcher:Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    invoke-virtual {v1}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;->getSlotCount()I

    move-result v8

    .line 758
    .local v8, count:I
    const/4 v12, 0x0

    .local v12, idx:I
    :goto_2
    if-ge v12, v8, :cond_7

    .line 759
    iget-object v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceSwitcher:Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    invoke-virtual {v1, v12}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;->getObjectInSlot(I)Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v0

    check-cast v0, Lcom/nemustech/tiffany/world/TFPlaceHolder;

    .line 760
    .local v0, workspaceThumb:Lcom/nemustech/tiffany/world/TFPlaceHolder;
    const/4 v1, 0x0

    invoke-direct {p0, v0, v1}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->banChiselFringeOnWorkspaceThumb(Lcom/nemustech/tiffany/world/TFPlaceHolder;Z)V

    .line 762
    if-ge v12, v9, :cond_7

    .line 764
    if-nez p1, :cond_6

    .line 766
    if-ne v12, v10, :cond_4

    .line 767
    const/4 v1, 0x0

    const/4 v2, 0x0

    const/4 v3, 0x0

    invoke-virtual {v0, v1, v2, v3}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->locate(FFF)V

    .line 787
    :cond_2
    :goto_3
    invoke-direct {p0, v9, v12, v7}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->getMappedCoordinates(II[F)V

    .line 788
    const/4 v1, 0x0

    aget v1, v7, v1

    const/4 v2, 0x1

    aget v2, v7, v2

    const/4 v3, 0x0

    const-wide/16 v4, 0xb4

    invoke-virtual/range {v0 .. v5}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->move(FFFJ)V

    .line 758
    add-int/lit8 v12, v12, 0x1

    goto :goto_2

    .line 751
    .end local v0           #workspaceThumb:Lcom/nemustech/tiffany/world/TFPlaceHolder;
    .end local v7           #coordinate:[F
    .end local v8           #count:I
    .end local v12           #idx:I
    :cond_3
    const/4 v1, 0x3

    if-ne p1, v1, :cond_1

    .line 752
    iget-object v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceSwitcher:Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    iget-object v2, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceSwitcher:Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    invoke-virtual {v2}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;->getSlotCount()I

    move-result v2

    const/4 v3, 0x1

    sub-int/2addr v2, v3

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;->getObjectInSlot(I)Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v6

    check-cast v6, Lcom/nemustech/tiffany/world/TFPlaceHolder;

    .line 753
    .local v6, addWorkspaceThumb:Lcom/nemustech/tiffany/world/TFPlaceHolder;
    const/4 v1, 0x0

    invoke-virtual {v6, v1}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->setVisibility(Z)V

    goto :goto_1

    .line 770
    .end local v6           #addWorkspaceThumb:Lcom/nemustech/tiffany/world/TFPlaceHolder;
    .restart local v0       #workspaceThumb:Lcom/nemustech/tiffany/world/TFPlaceHolder;
    .restart local v7       #coordinate:[F
    .restart local v8       #count:I
    .restart local v12       #idx:I
    :cond_4
    if-le v10, v12, :cond_5

    .line 771
    iget v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceWidth:F

    neg-float v1, v1

    const v2, 0x3f99999a

    mul-float/2addr v1, v2

    const/4 v2, 0x0

    const/4 v3, 0x0

    invoke-virtual {v0, v1, v2, v3}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->locate(FFF)V

    goto :goto_3

    .line 774
    :cond_5
    iget v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceWidth:F

    const v2, 0x3f99999a

    mul-float/2addr v1, v2

    const/4 v2, 0x0

    const/4 v3, 0x0

    invoke-virtual {v0, v1, v2, v3}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->locate(FFF)V

    goto :goto_3

    .line 778
    :cond_6
    const/4 v1, 0x3

    if-ne p1, v1, :cond_2

    .line 779
    if-ge v12, v9, :cond_7

    .line 780
    invoke-virtual {v0}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->getSlotCount()I

    move-result v1

    const/4 v2, 0x1

    sub-int/2addr v1, v2

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->getModelInSlot(I)Lcom/nemustech/tiffany/world/TFModel;

    move-result-object v11

    check-cast v11, Lcom/nemustech/tiffany/world/TFPanel;

    .line 781
    .local v11, deleteIconPanel:Lcom/nemustech/tiffany/world/TFPanel;
    const/4 v1, 0x0

    invoke-virtual {v11, v1}, Lcom/nemustech/tiffany/world/TFPanel;->setTouchable(Z)V

    .line 782
    const/4 v1, 0x0

    const-wide/16 v2, 0x96

    invoke-virtual {v11, v1, v2, v3}, Lcom/nemustech/tiffany/world/TFPanel;->fade(FJ)V

    goto :goto_3

    .line 793
    .end local v0           #workspaceThumb:Lcom/nemustech/tiffany/world/TFPlaceHolder;
    .end local v11           #deleteIconPanel:Lcom/nemustech/tiffany/world/TFPanel;
    :cond_7
    iget-object v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceSwitcher:Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    const/4 v2, 0x1

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;->setVisibility(Z)V

    .line 794
    const-string v1, "ElementWorkspaceSwitcher"

    const-string v2, "workspace switcher O, foreground X"

    const/4 v3, 0x0

    invoke-static {v1, v2, v3}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 795
    iget-object v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    const/4 v2, 0x1

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ReginaLauncher;->setViewMode(I)V

    .line 796
    const-string v1, "ElementWorkspaceSwitcher"

    const-string v2, "VIEW_WORKSPACE_SWITCHER"

    const/4 v3, 0x0

    invoke-static {v1, v2, v3}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 797
    iget-object v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceHolder:Lcom/nemustech/regina/RGWorkspaceHolder;

    invoke-virtual {v1}, Lcom/nemustech/regina/RGWorkspaceHolder;->lock()V

    .line 798
    iget-object v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceSwitcher:Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    invoke-virtual {v1}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;->unlock()V

    goto/16 :goto_0
.end method

.method public getInternalObject()Lcom/nemustech/tiffany/world/TFObject;
    .locals 1

    .prologue
    .line 720
    iget-object v0, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceSwitcher:Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    return-object v0
.end method

.method public getObject()Lcom/nemustech/tiffany/world/TFObject;
    .locals 1

    .prologue
    .line 516
    iget-object v0, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceSwitcher:Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    return-object v0
.end method

.method public getSnapShot()Landroid/graphics/Bitmap;
    .locals 1

    .prologue
    .line 521
    const/4 v0, 0x0

    return-object v0
.end method

.method public getSnapShot(I)Landroid/graphics/Bitmap;
    .locals 1
    .parameter "faceIndex"

    .prologue
    .line 860
    const/4 v0, 0x0

    return-object v0
.end method

.method public getSnapShotOpposite()Landroid/graphics/Bitmap;
    .locals 1

    .prologue
    .line 854
    const/4 v0, 0x0

    return-object v0
.end method

.method protected isObjectEventConsumer(Lcom/nemustech/tiffany/world/TFObject;)Z
    .locals 1
    .parameter "object"

    .prologue
    .line 526
    const/4 v0, 0x1

    return v0
.end method

.method public isOwnerOf(Lcom/nemustech/tiffany/world/TFObject;)Z
    .locals 4
    .parameter "object"

    .prologue
    const/4 v3, 0x1

    .line 531
    const-string v0, "ElementWorkspaceSwitcher"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "searching for "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1, v3}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 532
    iget-object v0, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceSwitcher:Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    invoke-virtual {v0, p1}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;->searchForChildObject(Lcom/nemustech/tiffany/world/TFObject;)Lcom/nemustech/tiffany/world/TFHolder;

    move-result-object v0

    if-eqz v0, :cond_0

    move v0, v3

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public rearrangeWorkspaceThumbs(Lcom/nemustech/tiffany/world/TFHolder;)V
    .locals 12
    .parameter "hoveringWorkspace"

    .prologue
    const-wide/16 v4, 0xc8

    const/4 v11, 0x0

    const/4 v10, 0x1

    .line 615
    const/4 v1, 0x2

    new-array v6, v1, [F

    .line 616
    .local v6, coordinate:[F
    invoke-direct {p0}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->doWeNeedAddPanel()Z

    move-result v9

    .line 617
    .local v9, needAddPanel:Z
    iget-object v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceSwitcher:Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    invoke-virtual {v1}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;->getSlotCount()I

    move-result v1

    if-eqz v9, :cond_1

    move v2, v11

    :goto_0
    add-int v7, v1, v2

    .line 619
    .local v7, count:I
    const/4 v8, 0x0

    .local v8, idx:I
    :goto_1
    if-ge v8, v7, :cond_3

    .line 621
    iget-object v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceSwitcher:Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    invoke-virtual {v1, v8}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;->getObjectInSlot(I)Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v0

    check-cast v0, Lcom/nemustech/tiffany/world/TFPlaceHolder;

    .line 622
    .local v0, workspaceThumb:Lcom/nemustech/tiffany/world/TFPlaceHolder;
    if-ne v0, p1, :cond_2

    .line 619
    :cond_0
    :goto_2
    add-int/lit8 v8, v8, 0x1

    goto :goto_1

    .line 617
    .end local v0           #workspaceThumb:Lcom/nemustech/tiffany/world/TFPlaceHolder;
    .end local v7           #count:I
    .end local v8           #idx:I
    :cond_1
    const/4 v2, -0x1

    goto :goto_0

    .line 625
    .restart local v0       #workspaceThumb:Lcom/nemustech/tiffany/world/TFPlaceHolder;
    .restart local v7       #count:I
    .restart local v8       #idx:I
    :cond_2
    invoke-direct {p0, v7, v8, v6}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->getMappedCoordinates(II[F)V

    .line 626
    aget v1, v6, v11

    aget v2, v6, v10

    const/4 v3, 0x0

    invoke-virtual/range {v0 .. v5}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->move(FFFJ)V

    .line 627
    sub-int v1, v7, v10

    if-ne v8, v1, :cond_0

    if-eqz v9, :cond_0

    .line 628
    invoke-virtual {v0, v10}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->setVisibility(Z)V

    .line 629
    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->setEffectFinishListener(Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;)V

    .line 630
    const/high16 v1, 0x3f80

    invoke-virtual {v0, v1, v4, v5}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->fade(FJ)V

    goto :goto_2

    .line 635
    .end local v0           #workspaceThumb:Lcom/nemustech/tiffany/world/TFPlaceHolder;
    :cond_3
    return-void
.end method

.method public removeWorkspaceThumb(I)V
    .locals 2
    .parameter "index"

    .prologue
    .line 601
    iget-object v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mWorkspaceSwitcher:Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    invoke-virtual {v1, p1}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;->getObjectInSlot(I)Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v0

    check-cast v0, Lcom/nemustech/tiffany/world/TFPlaceHolder;

    .line 602
    .local v0, workspaceThumb:Lcom/nemustech/tiffany/world/TFPlaceHolder;
    iget-object v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v1}, Lcom/nemustech/regina/ReginaLauncher;->getWorld()Lcom/nemustech/tiffany/world/TFWorld;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->detachFrom(Lcom/nemustech/tiffany/world/TFWorld;)V

    .line 603
    return-void
.end method
